package sqlite

import (
	"fmt"
	"uap/common"

	"github.com/glebarez/sqlite"
	"gorm.io/gorm"
)

func InitSqlite() {
	var err error
	common.Db, err = gorm.Open(sqlite.Open("localdb.db"), &gorm.Config{})
	if err != nil {
		// 处理错误
		fmt.Println(err)
	}
}
